import request from './request'

// 获取照片列表
export const getPhotoList = (path, page = 1) => {
  return request({
    url: '/photos',
    method: 'get',
    params: {
      page,
      path
    }
  })
}


// 删除照片
export function deletePhoto(urls) {
  return request({
    url: `/delItems`,
    method: 'post',
    data: {
      urls
    }
  })
}